<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<!-- <link rel="stylesheet" type="text/css" href="https://juhecdn.oss-cn-hangzhou.aliyuncs.com/css/reset.css" />
<link rel="stylesheet" type="text/css" href="/themes/v5/public/css/template/headerFooter.css?v=1.3" />
 -->
<link href="../../../css/v6/home/index/reset.css" rel="stylesheet" type="text/css">
<link href="../../../css/v6/home/index/font_537271_pvh5u2glvjb.css" rel="stylesheet">

<link href="../../../css/v6/headerFooter/header-white.css" rel="stylesheet">
<link href="../../../css/v6/headerFooter/footer-white1.css" rel="stylesheet">
<link href="../../../themes/v4/public/css/bootstrap.min.css" rel="stylesheet">
<link href="../../../themes/v4/public/js/highlight.min.css" rel="stylesheet">
<title>在线模拟请求_聚合数据</title>
<!-- <script src="//hm.baidu.com/hm.js?5d12e2b4eed3b554ae941c0ac43c330a"></script> -->
<script src="../../../themes/v4/public/js/highlight.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../themes/js/json.parse.js" type="text/javascript"></script>
<!--[if lt IE 9]>
<script src="https://juhecdn.oss-cn-hangzhou.aliyuncs.com/common/html5shiv.min.js" type="text/javascript" charset="utf-8"></script>
<script src="https://juhecdn.oss-cn-hangzhou.aliyuncs.com/common/respond.min.js" type="text/javascript" charset="utf-8"></script>
<![endif]-->
<!--[if IE 6]>
<script src="/themes/v4/public/js/DD_belatedPNG_0.0.8a.js"  type="text/javascript"></script>
<script>DD_belatedPNG.fix('.png_bg');</script>
<![endif]-->
<style>
.header-dropdown .submenu-data, .header-action .header-btn2,
	.header-action .header-btn1 {
	box-sizing: content-box;
}

dt {
	font-weight: normal;
}

a:hover {
	text-decoration: none;
}

.section-top, .section-top .top-search, .top-tips .top-tip-content li a,
	.vip-juhe, .top-tips .top-tip-content li {
	box-sizing: content-box;
}

.section-top .top-wrapper h1 {
	margin: 0;
}

.jboxmain {
	width: 1200px;
	margin: 0 auto;
	margin-top: 10px;
	margin-bottom: 70px;
}

.jboxnav {
	width: 1200px;
	margin: 0 auto;
	margin-top: 96px;
}

.jboxnav ul li {
	float: left;
	padding-right: 20px;
	padding-left: 10px;
	line-height: 35px;
	font-size: 12px;
	font-weight: lighter;
	color: #666;
	background: url('../../../themes/v4/public/images/boxjiantou.png') right center
		no-repeat
}

.jboxnav ul li.last {
	background: none;
}

.jboxnav ul li a {
	color: #666;
	text-decoration: none;
}

.jboxnav ul li a:hover {
	color: #00b7ee;
}

.feedback, .feedback2 {
	width: 100%;
	height: 35px;
	line-height: 35px;
	margin-bottom: 10px;
	border-radius: 6px;
	display: none;
	border: 1px solid rgba(169, 68, 66, 0.8);
	border-color: rgba(169, 68, 66, 0.8);
	color: rgba(169, 68, 66, 1);
	text-indent: 20px;
	outline: 0;
	outline: thin dotted \9;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px
		rgba(169, 68, 66, 0.6);
	-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px
		rgba(169, 68, 66, 0.6);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px
		rgba(169, 68, 66, 0.6)
}

.feedback2 {
	display: block;
}

#icon {
	display: none !important;
}
</style>
<link id="layui_layer_skinlayercss" href="../../../js/static/layer/skin/layer.css" rel="stylesheet">
</head>
<body>
<!-- 	<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?5d12e2b4eed3b554ae941c0ac43c330a";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})(); -->
</script>
	<header class="header">
		<div class="header-nav">
			<div class="header-logo">
				<a class="header-logo-pic" href="/"> 聚合数据-基础数据API接口提供商，一家数据银行 </a>
			</div>
			<div class="header-menu">
				<div class="header-menu-item">
					<a class="header-title site_home" href="https://www.juhe.cn/"
						rel="noopener noreferrer">首页</a>
				</div>
				<div class="header-menu-item">
					<a class="header-title site_data_service"
						href="../../../docs.html" rel="noopener noreferrer">数据服务</a>
				</div>
			</div>
			<div class="header-action">
				<div class="header-search">
					<div class="header-search-container">
						<input id="devalutKeyword" type="hidden" value="驾驶证"> <input
							name="q" class="search-input" id="search-input-v6" type="text"
							maxlength="12" placeholder="驾驶证" value="" autocomplete="off">
					</div>
					<div class="header-search-btn" id="header-search-v6">
						<i class="iconfont icon-search"></i>
						<!--[if lt IE 9]>
            <span>搜索</span>
            <![endif]-->
					</div>
				</div>
				<div class="header-line"></div>
				<div class="header-status">
					<a class="header-btn2" href="https://www.juhe.cn/account">个人中心</a><a
						class="header-btn1" id="logout" href="javascript:void(0)">退出</a>
				</div>
			</div>
		</div>
		<!-- <div class="header-dropdown">
			<div class="header-submenu">
				<div class="submenu-container">
					<div class="submenu-data clearfix">
						<div class="submenu-data-item">
							<a class="submenu-data-type click-report-log"
								log-data="area=100002&index_id=210004"
								href="../../../docs/index/cid/1.html" target="_blank"
								rel="noopener noreferrer"> <strong>用户认证服务</strong>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200213" href="1.html"
								target="_blank" title="用户管理API" rel="noopener noreferrer"> <span
								class="submenu-data-text">用户管理</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200103"
								href="https://www.juhe.cn/docs/api/id/208" target="_blank"
								title="机构管理API" rel="noopener noreferrer"> <span
								class="submenu-data-text">机构管理</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200021"
								href="https://www.juhe.cn/docs/api/id/21" target="_blank"
								title="角色管理API" rel="noopener noreferrer"> <span
								class="submenu-data-text">角色管理</span> <span
								class="submenu-data-hot">HOT</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=210004"
								href="../../../docs/index/cid/1.html" target="_blank"
								title="更多 &gt;&gt;API" rel="noopener noreferrer"> <span
								class="submenu-data-text">更多 &gt;&gt;</span>
							</a>
						</div>
						<div class="submenu-data-item">
							<a class="submenu-data-type click-report-log"
								log-data="area=100002&index_id=210001"
								href="../../../docs/index/cid/2.html" target="_blank"
								rel="noopener noreferrer"> <strong>共享API服务中心</strong>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200043"
								href="https://www.juhe.cn/docs/api/id/43" target="_blank"
								title="IP查询服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">IP查询服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200039"
								href="https://www.juhe.cn/docs/api/id/39" target="_blank"
								title="域名查询服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">域名查询服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200300"
								href="https://www.juhe.cn/docs/api/id/300" target="_blank"
								title="网站分类库查询服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">网站分类库查询服务</span> <span
								class="submenu-data-new">NEW</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=210001"
								href="../../../docs/index/cid/2.html" target="_blank"
								title="更多  &gt;&gt;API" rel="noopener noreferrer"> <span
								class="submenu-data-text">更多 &gt;&gt;</span>
							</a>
						</div>
						<div class="submenu-data-item">
							<a class="submenu-data-type click-report-log"
								log-data="area=100002&index_id=210010"
								href="../../../docs/index/cid/3.html" target="_blank"
								rel="noopener noreferrer"> <strong>信安系统服务中心</strong>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200036"
								href="https://www.juhe.cn/docs/api/id/36" target="_blank"
								title="网民行为分析服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">网民行为分析服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200182"
								href="https://www.juhe.cn/docs/api/id/182" target="_blank"
								title="IP信息报备服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">IP信息报备服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200007"
								href="https://www.juhe.cn/docs/api/id/7" target="_blank"
								title="基础资源监测服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">基础资源监测服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=210010"
								href="../../../docs/index/cid/3.html" target="_blank"
								title="更多 &gt;&gt;API" rel="noopener noreferrer"> <span
								class="submenu-data-text">更多 &gt;&gt;</span>
							</a>
						</div>
						<div class="submenu-data-item">
							<a class="submenu-data-type click-report-log"
								log-data="area=100002&index_id=200013"
								href="../../../docs/index/cid/4.html" target="_blank"
								rel="noopener noreferrer"> <strong>网安系统服务中心</strong>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200054"
								href="https://www.juhe.cn/docs/api/id/54" target="_blank"
								title="安全事件 查询服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">安全事件查询服务</span> <span
								class="submenu-data-hot">HOT</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200061"
								href="https://www.juhe.cn/docs/api/id/61" target="_blank"
								title="移动恶意程序服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">移动恶意程序服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200288"
								href="https://www.juhe.cn/docs/api/id/288" target="_blank"
								title="漏洞库管理服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">漏洞库管理服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=210013"
								href="../../../docs/index/cid/4.html" target="_blank"
								title="更多 &gt;&gt;API" rel="noopener noreferrer"> <span
								class="submenu-data-text">更多 &gt;&gt;</span>
							</a>
						</div>
						<div class="submenu-data-item">
							<a class="submenu-data-type click-report-log"
								log-data="area=100002&index_id=210003"
								href="../../../docs/index/cid/5.html" target="_blank"
								rel="noopener noreferrer"> <strong>备案系统服务中心</strong>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200016"
								href="https://www.juhe.cn/docs/api/id/16" target="_blank"
								title="接入网站管理API" rel="noopener noreferrer"> <span
								class="submenu-data-text">接入网站管理</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200015"
								href="https://www.juhe.cn/docs/api/id/32" target="_blank"
								title="ISP管理服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">ISP管理服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200008"
								href="https://www.juhe.cn/docs/api/id/8" target="_blank"
								title="备案企业主体服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">备案企业主体服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=210003"
								href="../../../docs/index/cid/5.html" target="_blank"
								title="更多 &gt;&gt;API" rel="noopener noreferrer"> <span
								class="submenu-data-text">更多 &gt;&gt;</span>
							</a>
						</div>
						<div class="submenu-data-item">
							<a class="submenu-data-type click-report-log"
								log-data="area=100002&index_id=210015"
								href="../../../docs/index/cid/6.html" target="_blank"
								rel="noopener noreferrer"> <strong>工业互联网系统</strong>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200153"
								href="https://www.juhe.cn/docs/api/id/153" target="_blank"
								title="工业互联网平台探测服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">工业互联网平台探测服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200296"
								href="https://www.juhe.cn/docs/api/id/296" target="_blank"
								title="安全事件告警查询服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">安全事件告警查询服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=200178"
								href="https://www.juhe.cn/docs/api/id/178" target="_blank"
								title="漏洞查询服务API" rel="noopener noreferrer"> <span
								class="submenu-data-text">漏洞查询服务</span>
							</a> <a class="submenu-data-name click-report-log"
								log-data="area=100002&index_id=210015"
								href="../../../docs/index/cid/6.html" target="_blank"
								title="更多 &gt;&gt;API" rel="noopener noreferrer"> <span
								class="submenu-data-text">更多 &gt;&gt;</span>
							</a>
						</div>
					</div>
				</div>
			</div>
		</div> -->
	</header>
	<div class="jboxnav">
		<ul>
			<!-- <li><a href="/docs" target="_blank">聚盒子</a></li>
			<li><a href="/docs/index/cid/1" target="_blank">生活常用</a></li> -->
			<li class="last">接口测试</li>
		</ul>
		<div class="clear"></div>
	</div>
	<div class="jboxmain">
		<div class="container">
			<form>

				<!-- <div class="form-group">
					<label class="control-label" for="apinamesel">我的数据：</label>
					<div>
						<select class="form-control  input-sm" id="datasel">
							<option selected="selected" value="277">[277]&nbsp;历史天气</option>
							<option value="246">[246]&nbsp;城际出行换乘规划</option>
						</select>
					</div>
				</div> -->

				<div class="form-group">
					<label class="control-label" for="apinamesel">接口名称：</label>
					<div>
						<input class="form-control input-sm" id="id_api_name" type="text"
							readonly="" placeholder="接口名称" value="">
					</div>
					<!-- <div>
						<select class="form-control  input-sm" id="apinamesel">
							<option value="1052">用户信息查询</option>
							<option value="1053">支持城市地区列表</option>
							<option value="1054">查询历史天气</option>
						</select>
					</div> -->
				</div>

				<div class="form-group">
					<label class=" control-label" for="apiurl">接口地址：</label>
					<div>
						<input class="form-control input-sm" id="apiurl" type="text"
							readonly="" placeholder="接口的URL" value="">
					</div>
				</div>

				<div class="form-group">
					<label class=" control-label" for="requesttypesel">请求方式：</label>
					<div>
						<select class="form-control  input-sm" id="requesttypesel">
							<!-- <option value="GET">GET</option> -->
							<option value="POST">POST</option>
						</select>
					</div>
				</div>

				<!--
                <div class="form-group">
                  <label for="responsetypesel" class=" control-label">返回格式：</label>
                  <div class="">
                        <select class="form-control  input-sm" id="responsetypesel">
                            <option value="JSON">JSON</option>
                            <option value="XML">XML</option>
                        </select>
                  </div>
                </div>
              -->

				<div class="form-group">
					<label for="params">请求参数：</label>
					<table class="table table-bordered table-striped table-condensed"
						id="params" style="font-size: 12px;">
						<tbody>
							<tr>
								<td>参数名</td>
								<td>类型</td>
								<td>是否必填</td>
								<td>说明</td>
								<td>值</td>
							</tr>
							<tr>
								<td></td>
								<td></td>
								<td></td>
								<td></td>
								<td><input name="input-param" class="form-control input-sm"
									type="text" placeholder="" data=""></td>
							</tr>

						</tbody>
					</table>
				</div>

				<div class="form-group">
					<button class="btn btn-success" id="boxBtn" type="button">发送请求</button>
					&nbsp;<span style="color: rgb(255, 133, 3); font-size: 12px;">（*为了准确性，所有请求均基于真实环境请求，请悉知）</span>
				</div>

				<div class="feedback" id="feedback"></div>

				<div>
					<label>请求详情：</label>
					<div>
						<pre id="requestinfo"></pre>
					</div>

				</div>
				<div>
					<label>返回内容：</label>
					<div id="returnarea">
						<pre>
							<code id="response"></code>
						</pre>
					</div>
				</div>

			</form>
		</div>
	</div>
	<div class="clearfix"></div>
	<!-- <footer class="footer">
		<div class="footer-container">
			<div class="footer-bottom clearfix">
				<div class="footer-bottom-left">
					<a
						href="http://www.jsdsgsxt.gov.cn/mbm/entweb/elec/certView.shtml?siteId=301146c087f2499ca507bfa91ab143ec"
						target="_blank" rel="noopener noreferrer"> <span
						class="footer-pic1"></span>
					</a> <a
						href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32059002001776"
						target="_blank" rel="noopener noreferrer"> <span
						class="footer-pic2"></span> <span>苏公网安备 32059002001776号</span>
					</a> <span class="footer-license">增值电信业务经营许可证：苏B2-20140496</span> <a
						class="footer-icp" href="http://www.miitbeian.gov.cn"
						target="_blank" rel="noopener noreferrer"> <span>苏ICP备14006450号-3</span>
					</a>
				</div>
				<div class="footer-bottom-right">
					<span>天聚地合（苏州）数据股份有限公司&copy;版权所有</span>
				</div>
			</div>
		</div>
	</footer> -->
	<script src="../../../js/static/jquery/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/common/Base64.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/common/getUrlParam.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/common/getParamValue.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/static/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/v6/headerFooter/header.js"></script>
	<script type="text/javascript">
		 var url = UrlParm.parm("url");
     </script>

	<script type="text/javascript">
$(document).ready(function(){

  $("#datasel").change(function(){
      var did = $("#datasel").val();
      var rurl = '/box/index/id/%40id%40';
      rurl=rurl.replace(/%40id%40/,encodeURIComponent(did));
      window.location.href=rurl;
  })

  var parameter = Base64.decode(UrlParm.parm("parameter"));
  var url = UrlParmValue(parameter).parm("url");
  var id = UrlParmValue(parameter).parm("id")
  var name = UrlParmValue(parameter).parm("name");
	    
  //接口名称
  $("#id_api_name").val(name+"查询");
  //接口地址
  $("#apiurl").val(url);
  
  $("#apinamesel").change(function(){
    $("#response,#requestinfo").html('');
    $("#feedback").html("").css({display:"none"});
    var apiid = $(this).val();
    $.post('/box/getpara',{id:apiid},function(e){
      var obj = json_parse(e);
      var code = obj.code;
      if(code == 1){
        $("#apiurl").val(obj.data.url);
        var params=obj.data.params;
        var paramsHtml = '<tr><td>参数名</td><td>类型</td><td>是否必填</td><td>说明</td><td>值</td></tr>';
        var paramsHtmlLoading = '<tr><td colspan="5">loading...</td></tr>';
        $("#params").html(paramsHtml+paramsHtmlLoading);
        //return false;
        for(var j in params){

          if(params[j][0]!='key' && params[j][0]){
            paramsHtml +='<tr>';
            paramsHtml +='<td>'+params[j][0]+'</td>';
            paramsHtml +='<td>'+params[j][2]+'</td>';
            paramsHtml +='<td>'+params[j][1]+'</td>';
            paramsHtml +='<td>'+params[j][3]+'</td>';
            paramsHtml +='<td><input type="text" class="form-control input-sm" name="input-param" placeholder="" data="'+params[j][0]+'"></td>';
            paramsHtml +='</tr>';
          }
        }
        $("#params").html(paramsHtml);
      }else{
        alert(code+":"+obj.info);
      }
    })
  })

  $("#boxBtn").click(function(){
    //$("#boxBtn").html('请求中...').attr('disabled','disabled');

    $("#feedback").html("").css({display:"none"});

    $("#response,#requestinfo").html('');

    var requesttypesel = $("#requesttypesel").val();
    var inputs= $("input[name=input-param]");
    var apiid = $("#apinamesel").val();

    var paraObj = {requesttypesel:requesttypesel,apiid:apiid};
    var params = {};
    $.each(inputs,function(){
      //alert($(this).val());
      var paranamevalue=$(this).val();
      var paraname= $(this).attr("data");
      //paraObj[paraname]=paranamevalue;
      params[paraname] = paranamevalue;
    });
    paraObj['params'] = JSON.stringify(params);

 	var requestinfo = '';
     requestinfo ="请求地址："+url+"<br/>";
     requestinfo +="请求参数：id="+id+"<br/>";
     requestinfo +="请求方式：POST<br/>"; 
        
    //var data = {"id":9,"user_id":"1","category_name":"默认分类","widget_name":"企业","create_time":"2018-09-26 15:41:46.0","update_time":"2018-09-26 15:41:46.0","folder_id":"10002"};
	//var data = {"columnList":[{"index":0,"aggType":null,"name":"IDC_NAME"},{"index":1,"aggType":null,"name":"IDC_ADD"},{"index":2,"aggType":null,"name":"PR_ID"},{"index":3,"aggType":null,"name":"TYPE"},{"index":4,"aggType":"sum","name":"ID"}],"data":[["深圳市伍壹卡科技有限公司","深圳市南山区南山大道与创业路交汇处1088号南园枫叶大厦20E","130000","1","2.01795608211E11"],["海南易极网络科技有限公司","海南省海口市大同路36号华能大厦7层7B1","460000","1","2.01795608529E11"]};
	//var str = JSON.stringify(data, null, 4);
	$("#requestinfo").html(requestinfo);
	//$("#response").html(str);
	
     $.ajax({
		type : "GET",
		url :  "/interface/interfaceTest",
		//url : "http://172.30.132.141:7071/mcService/getApi/data/1",
		data : {
			url : url + "/" + id
		},
		dataType : "json",
		success : function(data) {
			$("#response").removeClass("xml").addClass("json");
			//var str = JSON.stringify(data,null, "\t");
			//var data = {"flag":true,"dataList":[{"name":"idc","count":200},{"name":"cdn","count":300}],"dataMap":{"name":"cdn","count":300},"data":"[{name=idc, count=200}, {name=cdn, count=300}]"}
			//var data = {"id":9,"user_id":"1","category_name":"默认分类","widget_name":"企业","create_time":"2018-09-26 15:41:46.0","update_time":"2018-09-26 15:41:46.0","folder_id":"10002"};
			var str = JSON.stringify(data, null, 4);
			$("#response").html(str);
		    hljs.highlightBlock($("#returnarea pre code").get(0));
		}
	});  

    
    /* $.get("http://127.0.0.1:8091/accumulative/restFul/getData",paraObj,function(e){
        var obj = json_parse(e);
        //var code = obj.code;
        var code = '1';
        if(code == '1'){
            var data = obj.data;
          
             var requestinfo = '';
            requestinfo ="请求地址："+data.url+"<br/>";
            requestinfo +="请求参数："+data.params+"<br/>";
            requestinfo +="请求方式："+data.requestType+"<br/>"; 

            if(data.isxml=='1'){
              $("#response").removeClass("json").addClass("xml");
              data.response = formatXml(data.response)
              data.response = html_encode(data.response);
              //data.response = '<code id="response" class="xml hljs">'+data.response+'</code>';
            }else{
              $("#response").removeClass("xml").addClass("json");
            } 
            //html_encode
            //$("#requestinfo").html(requestinfo);
            //$("#response").html(data.response);
            hljs.highlightBlock($("#returnarea pre code").get(0));
        }else{
            var feedback = obj.info;
            if(obj.url){
                feedback += "，<a href='"+obj.url+"'>点击这里>></a>";
            }
            $("#feedback").html(feedback).css({display:""});
        }
        $("#boxBtn").html('发送请求').removeAttr('disabled');
    }) */
  })

})

 function formatXml(text)
    {
        //去掉多余的空格
        text = '\n' + text.replace(/(<\w+)(\s.*?>)/g,function($0, name, props)
        {
            return name + ' ' + props.replace(/\s+(\w+=)/g," $1");
        }).replace(/>\s*?</g,">\n<");

        //把注释编码
        text = text.replace(/\n/g,'\r').replace(/<!--(.+?)-->/g,function($0, text)
        {
            var ret = '<!--' + escape(text) + '-->';
            //alert(ret);
            return ret;
        }).replace(/\r/g,'\n');

        //调整格式
        var rgx = /\n(<(([^\?]).+?)(?:\s|\s*?>|\s*?(\/)>)(?:.*?(?:(?:(\/)>)|(?:<(\/)\2>)))?)/mg;
        var nodeStack = [];
        var output = text.replace(rgx,function($0,all,name,isBegin,isCloseFull1,isCloseFull2 ,isFull1,isFull2){
            var isClosed = (isCloseFull1 == '/') || (isCloseFull2 == '/' ) || (isFull1 == '/') || (isFull2 == '/');
            //alert([all,isClosed].join('='));
            var prefix = '';
            if(isBegin == '!')
            {
                prefix = getPrefix(nodeStack.length);
            }
            else
            {
                if(isBegin != '/')
                {
                    prefix = getPrefix(nodeStack.length);
                    if(!isClosed)
                    {
                        nodeStack.push(name);
                    }
                }
                else
                {
                    nodeStack.pop();
                    prefix = getPrefix(nodeStack.length);
                }

            }
                var ret =  '\n' + prefix + all;
                return ret;
        });

        var prefixSpace = -1;
        var outputText = output.substring(1);
        //alert(outputText);

        //把注释还原并解码，调格式
        outputText = outputText.replace(/\n/g,'\r').replace(/(\s*)<!--(.+?)-->/g,function($0, prefix,  text)
        {
            //alert(['[',prefix,']=',prefix.length].join(''));
            if(prefix.charAt(0) == '\r')
                prefix = prefix.substring(1);
            text = unescape(text).replace(/\r/g,'\n');
            var ret = '\n' + prefix + '<!--' + text.replace(/^\s*/mg, prefix ) + '-->';
            //alert(ret);
            return ret;
        });

        return outputText.replace(/\s+$/g,'').replace(/\r/g,'\n');
    }

    function getPrefix(prefixIndex){
        var span = '    ';
        var output = [];
        for(var i = 0 ; i < prefixIndex; ++i){
            output.push(span);
        }
        return output.join('');
    }

    function html_encode(str) {
      var s = "";
      if (str.length == 0) return "";
      s = str.replace(/&/g, "&gt;");
      s = s.replace(/</g, "&lt;");
      s = s.replace(/>/g, "&gt;");
      s = s.replace(/ /g, "&nbsp;");
      s = s.replace(/\'/g, "&#39;");
      s = s.replace(/\"/g, "&quot;");
      s = s.replace(/\n/g, "<br>");
      return s;
    }
</script>
</body>
</html>